import axios from '../axios.js';
import { TYPES } from './const.js'

export default {
    getAllTypes(params) {
        return axios({
            url: TYPES + "/getAllTypes",
            method: "get",
            params
        });
    },

    delTypesById(data) {
        return axios({
            url: TYPES + "/delTypesById",
            method: "post",
            data
        });
    },

    getTypesById(params) {
        return axios({
            url: TYPES + "/getTypesById",
            method: "get",
            params
        });
    },


    addTypes(data) {
        return axios({
            url: TYPES + "/addTypes",
            method: "post",
            data
        });
    },

    changeTypesById(data) {
        return axios({
            url: TYPES + "/changeTypesById",
            method: "post",
            data
        });
    },

}